// 1.匹配
var reg1 = /\d/g
console.log(reg1.test("123"))
//2.替换
var reg2 ="abcde  deeed"
console.log(reg2.replace(/\s/g,'王'));

//3.提取
console.log(reg2.match(/\w+/));
